package com.ykt.model;

import com.jfinal.plugin.activerecord.Page;

import java.util.Map;


public class LoginLog extends BaseModel<LoginLog> {
    private static final long serialVersionUID = 1L;

    public static final String userId = "user_id";
    public static final String ip = "ip";
    public static final String login_time = "login_time";
    public static final String logout_time = "logout_time";

    public static LoginLog dao = new LoginLog();


    public Page<LoginLog> paginate(int pageNumber, int rows, Map<String, String> paramMap) {
        String select = "select l.*,u.name as user_name";
        String sqlExceptSelect = " from login_log l left join user u on l.user_id = u.id where 1=1 ";

        return pageFindModel(select, sqlExceptSelect, pageNumber, rows, paramMap);
    }
}
